package com.lizicloud.user.userinfo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 用户信息DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "用户信息")
public class UserInfoDTO {
    
    @Schema(description = "用户ID")
    private Long id;
    
    @Schema(description = "用户账号")
    private String useraccount;
    
    @Schema(description = "用户名")
    private String username;
    
    @Schema(description = "用户角色")
    private String role;
    
    @Schema(description = "邮箱地址")
    private String email;
    
    @Schema(description = "手机号码")
    private String phone;
    
    @Schema(description = "头像URL")
    private String avatar;
    
    @Schema(description = "状态：1-启用，0-禁用")
    private Integer status;
    
    @Schema(description = "最后登录时间")
    private LocalDateTime lastLoginTime;
    
    @Schema(description = "最后登录IP")
    private String lastLoginIp;
    
    @Schema(description = "创建时间")
    private LocalDateTime createdTime;
    
    @Schema(description = "更新时间")
    private LocalDateTime updatedTime;
}